import request from '@/utils/request'

// 查询仓库list
export function listTransfer(query) {
  return request({
    url: '/reverse/transfer/list',
    method: 'post',
    data:  JSON.parse(JSON.stringify(query))
  })
}


// 查询指定仓库
export function getTransfer(transferId) {
  return request({
    url: '/reverse/transfer/' + transferId,
    method: 'get'
  })
}

// 新增仓库
export function addTransfer(data) {
  return request({
    url: '/reverse/transfer',
    method: 'post',
    data: data
  })
}

// 修改仓库信息
export function updateTransfer(data) {
  return request({
    url: '/reverse/transfer/update',
    method: 'post',
    data: data
  })
}

// 删除仓库
export function delTransfer(transferId) {
  return request({
    url: '/reverse/transfer/' +transferId,
    method: 'delete'
  })
}